Skip to main content

PolyList

Type

widget

Summary

This widget that allows us to display our data as a list.

Description

PolyList is a widget that allows us to display data in a list format. This widget has enormous power when it comes to displaying data, with customization being one of its most powerful features. It allows you to create multiple layouts with it using the same control type and even multiple layouts for the same control.

Children Properties

Message

NameSummarySyntax
itemFirstDrawThis message is sent when a list item is showed the first time.itemFirstDraw <pItemIndex>
selectionChangedThis message is sent when the selection is changed.selectionChanged (pPreviousSelectionIndex,pNewSelectionIndex)
subItemMouseMoveThis message is sent when the mouse is moved over a subitem.subItemMouseMove (pItemIndex,pSubItemName)
subItemMouseLeaveThis message is sent when the mouse leaves a subitem's rect.subItemMouseLeave (pItemIndex, pSubItemName)
subItemMouseEnterThis message is sent when the mouse enters a subitem's rect.subItemMouseEnter (pItemIndex, pSubItemName)
subItemClickThis message is sent when the user clicks a subitem.subItemClick (pItemIndex, pSubItemName, pMouseButton)
itemMouseEnterThis message is sent when the mouse enter into an item's rectangle.itemMouseEnter pItem
itemMouseLeaveThis message is sent when the mouse leaves the item's rectangle.itemMouseLeave pItem
itemClickThis message is sent when the user clicks an item.itemClick (pItemIndex, pMouseButton)
scrollerDidScrollThis message is sent when the widget's content is scrolled.scrollerDidScroll

Property

NameSummarySyntax
addItemBeforeAdds one or more items before item index itemPointer.set the addItemBefore of widget to <list>
hScrollExperimentalget the hScroll of widget
enableItemCacheUse cache when rendering list items.set the enableItemCache of widget to <Boolean> get the enableItemCache of widget
csvDataThe csvData property reflects the content in CSV format.set the csvData of widget to <CSV> get the csvData of widget
multiHiliteSpecifies if the PolyList widget will allow to select more than one row at the same timeset the multiHilite of widget to {true | false} get the multiHilite of widget
addDataA method for adding data to the list.set the addData of widget to <List>
itemHeightEstablish the height of the item of the list.set the itemHeight of widget to <integer> get the itemHeight of widget
plItemColorDefines the background color of the list items.set the plItemColor of widget to <RGBA Color> get the plItemColor of widget
itemRoundedRadiusThe radius of the corners of the elements in the list.set the itemRoundedRadius of widget to <integer> get the itemRoundedRadius of widget
itemPointerIt's a pointer to tell the itemContent property about which item to act on.set the itemPointer of widget to <integer> get the itemPointer of widget
plHoverColorThe color of the item the mouse is over.set the plHoverColor of widget to <RGBA Color> get the plHoverColor of widget
numberOfElementsReports the total number of elements in a PolyList.set the numberOfElements of widget to 20 get the numberOfElements of widget
addItemAfterAdds one or more items after item index itemPointer.set the addItemAfter of widget to <list>
useOverlaysDraws the rectangle that indicates that an element is selected on top of the item.set the useOverlays of widget to {true | false} get the useOverlays of widget
mouseItemGet item index under the cursorget the mouseItem of widget
subItemRectGets the bounding rect of a specific sub item.get the subItemRect of widget
dataHeightReports the height needed by an object to display its full contents without scrolling.get the dataHeight of widget
imageResizeQualityThe quality used when resizing images.set the imageResizeQuality of widget to {none | low | medium | high} get the imageResizeQuality of widget
addSingleItemA method for adding an item to the list.set the addSingleItem of widget to <Array>
subItemPointerIt's a pointer to tell the subItemContent property about which item to act on.set the subItemPointer of widget to <String> get the subItemPointer of widget
strokeItemsSpecifies whether to draw the borders of the PolyList elements.set the strokeItems of widget to {true| false} get the strokeItems of widget
scrollbarWidthGet or set the width of the scrollbarset the scrollbarWidth of widget to <integer> get the scrollbarWidth of widget
enableImageCacheUse cache when rendering list items.set the enableImageCache of widget to <Boolean> get the enableImageCache of widget
MarginSpecifies the margin that all the elements of a list will have in the PolyList.set the margin of widget to <integer> get the margin of widget
dataLayoutDefines how each item in the list is drawn.set the dataLayout of widget to <Array> get the dataLayout of widget
roundedRadiusThe radius of the corners of the widget.set the roundedRadius of widget to <integer> get the roundedRadius of widget
hilitedItemIndexSpecifies the item that will be hilited on a PolyList control.set the hilitedItemIndex of widget to <integer> get the hilitedItemIndex of widget
plItemColorAltDefines the background color of the list items.set the plItemColorAlt of widget to <RGBA Color> get the plItemColorAlt of widget
scrollSpecifies the vertical scroll of a PolyList.set the scroll of widget to {<integer>} get the scroll of widget
itemContentGets and sets the value of the content of an item in list.set the itemContent of widget to <Array> get the itemContent of widget
plHiliteColorThe color of the highlighted item of list.set the plHiliteColor of widget to <RGBA Color> get the plHiliteColor of widget
hilitedItemDataGet or set the array of selected data corresponding to the selected item in the PolyList.set the hilitedItemData of widget to <DataArray> get the hilitedItemData of widget
showGridDraw a grid between items of the list.set the showGrid of widget to <Boolean> get the showGrid of widget
columnWidthEstablish the column width of the list.set the columnWidth of widget to <integer> get the columnWidth of widget
plBorderColorDefines the color with which the borders are drawn in PolyList.set the plBorderColor of widget to <RGBA Color> get the plBorderColor of widget
touchScrollingSpecifies if the PolyList widget will respond to mouse scrolling gesturesset the touchScrolling of widget to {true | false} get the touchScrolling of widget
autoHilightDefines if the PolyList highlights when an item is clicked.set the autoHilite of widget to {true | false} get the autoHilite of widget
numberOfColumnsSet up and get the number of columns displayed in the PolyListset the numberOfColumns of widget to {<integer>} get the numberOfColumns of widget
hoverWithMouseDefines if the PolyList highlights the item on which the mouse is.set the hoverWithMouse of widget to {true | false} get the hoverWithMouse of widget
lastItemInViewThe last visible or partially visible item of the list.get the lastItemInView of widget
paddingCreates extra space within the widget.set the padding of widget to <List>
mouseHoverHiliteShow the mouse item when the mouse is movedset the mouseHoverHilite of widget to {true | false} get the mouseHoverHilite of widget
vScrollBarShow or hide built-in vertical scrollbar.set the vScrollBar of widget to <String> get the vScrollBar of widget
deleteItemDelete items.set the deleteItem of widget to <List>
alternateItemColorsSet to true to alternate the background colors of every other row.set the alternateItemColors of widget to <Boolean> get the alternateItemColors of widget
dataContentGet or set the data array that the PolyList will display.set the dataContent of widget to <DataArray> get the dataContent of widget
firstItemInViewThe first visible or partially visible item of the list.get the firstItemInView of widget
subItemContentGets and sets the value of the content of an item in list.set the subItemContent of widget to <Array> get the subItemContent of widget
plBackgroundColorSpecifies the background color of list.set the plBackgroundColor of widget to <RGBA Color> get the plBackgroundColor of widget
itemRectGets the rect of a list item.get the itemRect of widget
dataWidthReports the width needed by an object to display its full contents without scrolling.get the dataWidth of widget
strokeBodySpecifies whether to draw the borders of the PolyList body.set the strokeBody of widget to {true| false} get the strokeBody of widget
tsvDataThe tsvData property reflects the content in TSV format.set the tsvData of widget to <TSV> get the tsvData of widget
borderWidthSpecifies the thickness with which borders are drawn on the PolyList.set the borderWidth of widget to <integer> get the borderWidth of widget